<empty name="cartdata">
<div class="alert alert-success" role="alert">您的购餐车现在为空呢！</div>
<else />
<div class="row">
	<table class="table table-hove">
		<thead>
			<tr>
				<th>菜品</th>
				<th>数量</th>
				<th>小计</th>
				<th><a href="{:U('Cart/cartclear')}"><i class="glyphicon glyphicon-remove"></i></a></th>
			</tr>
		</thead>
		<tbody>
		<volist name="cartdata" id="vo">
			<tr>
				<td>{$vo.name}</td>
				<td >
					<a class="add" href="{:U('Cart/cartupdate',array('id'=>$vo['rowid'],'status'=>'1'))}">+</a>
					{$vo.qty}
					<a class="add" href="{:U('Cart/cartupdate',array('id'=>$vo['rowid'],'status'=>'0'))}">-</a>
				</td>
				<td>￥{$vo.subtotal}</td>
				<td>
					<a href="{:U('Cart/cartdel',array('id'=>$vo['rowid']))}" > <i class="glyphicon glyphicon-remove"></i></a>
				</td>
			</tr>
		</volist>
			<tr>
				<td colspan="4">合计数量：	<span class="pull-right">{$total_items}份</span></td>
			</tr>
			<tr>
				<td colspan="4">合计金额：<span class="pull-right">￥{$total}.00</span></td>
			</tr>
			<tr>
				<td colspan="4">
					<a href="{:U('Cart/index')}" class="btn btn-info">
						<i class="fa fa-shopping-cart"></i>	立刻结算
					</a>
					<a href="{:U('Cart/cartclear')}" class="btn btn-danger">
						<i class="glyphicon glyphicon-remove"></i>	清空
					</a>
				</td>
			</tr>
		</tbody>
	</table>
</div>
</empty>